home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / examples.lha / examples / util / r8tohdf / r8tohdf.test < prev   
Encoding:
Text File  |  1991-10-09  |  1.2 KB  |  43 lines

  1. #! /bin/csh -f
  2. # Script for testing r8tohdf 
  3. #
  4. # Input files needed: storm110.raw (an 8-bit raw raster image file) 
  5. #                     palette.raw   (any raw palette file)
  6. #                     storm120.raw
  7. #                     storm130.raw
  8. #
  9. # Output files: o1 through o8 (see actual commands for their contents)
  10. #
  11. # The dimensions in the input files are assumed to be 57x57.
  12. #
  13. # Output files can be examined with hdfls to see if basic
  14. # contents are there.  Display the images using any HDF
  15. # 8-bit raster display tool.
  16. # Not tested: multiple input files with different options for each.
  17. #             imcomp compression (a bug has been found that sometimes
  18. #                   causes imcomp compression to loop infinitely)
  19. #
  20. set echo
  21. #
  22. # convert image with no compression (default), no palette
  23. r8tohdf 57 57 o1.hdf storm110.raw
  24. #
  25. # convert image with no compression (-r), with palette
  26. r8tohdf 57 57 o2.hdf -p palette.raw -r storm110.raw
  27. #
  28. # convert image with rle compression, no palette
  29. r8tohdf 57 57 o3.hdf -c storm110.raw
  30. #
  31. # convert image with rle compression, with palette
  32. r8tohdf 57 57 o4.hdf -p palette.raw -c storm110.raw
  33. #
  34. # convert three images with no compression, no palette
  35. r8tohdf 57 57 o5.hdf storm110.raw storm120.raw storm130.raw
  36. #
  37.  
  38. unset echo
  39.  
  40.  
  41.